﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="News.aspx.cs" Inherits="TCV_WEB.Admin.Page.News" Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <table border="0" style="width: 100%;">
        <tr>
            <td align="center">
                <asp:Label ID="lblErr" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="formTitle" align="center">
                List
                <asp:Label ID="lbnamenew" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center">
                <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"
                    OnItemCommand="RadGrid1_ItemCommand" OnNeedDataSource="RadGrid1_NeedDataSource"
                    Skin="Office2007" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"
                    PageSize="30" ShowGroupPanel="True">
                    <MasterTableView DataKeyNames="ID" PageSize="20">
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="column2" Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn CommandName="Load" Text="Chọn" UniqueName="column">
                            </telerik:GridButtonColumn>
                            <telerik:GridBoundColumn DataField="ShortDecribes" HeaderText="Tên" UniqueName="column3">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ShortDecribesVN" HeaderText="Tên VN" UniqueName="column4">
                            </telerik:GridBoundColumn>
                            <telerik:GridImageColumn DataImageUrlFields="Image" DataImageUrlFormatString="~/Uploads/Images/{0}"
                                ImageHeight="100px" ImageWidth="100px" UniqueName="column7" HeaderText="Ảnh">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </telerik:GridImageColumn>
                            <telerik:GridBoundColumn DataField="CountPreview" HeaderText="Số lần xem" UniqueName="column8">
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Xóa" CommandName="Delete"
                                ConfirmText="Bạn muốn xóa khách hàng này?" Text="Xóa" UniqueName="DeleteColumn">
                                <HeaderStyle Width="20px" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </telerik:GridButtonColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowDragToGroup="True">
                    </ClientSettings>
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <td align="center">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btAddnew" runat="server" OnClick="btAddnew_Click" Text="Add News"
                    Width="67px" />
                &nbsp;<asp:Button ID="btAddnew0" runat="server" OnClick="btAddnew0_Click" Text="Back"
                    Width="67px" />
            </td>
        </tr>
    </table>
</asp:Content>
